import request from "@/utils/request";

// 查询后台导入用户白名单列表
export function levelList(query) {
  return request({
    url: "/cancel/member/list",
    method: "get",
    params: query,
  });
}
export function addLevel(data) {
  return request({
    url: "/cancel/member/add",
    method: "post",
    data,
  });
}
export function levelDetail(id) {
  return request({
    url: "/cancel/member/" + id,
    method: "get",
  });
}
export function updateLevel(data) {
  return request({
    url: "/cancel/member/edit",
    method: "put",
    data,
  });
}
export function removeLevel(id) {
  return request({
    url: "/cancel/member/" + id,
    method: "delete",
  });
}
